﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BA2009.Entities;

namespace BA2009.Data.DataAccess
{
    public interface IRepository<T>
        where T:IEntity
    {
        IQueryable<T> FindAll();

        T GetById(int id);

        int Add(T item, params object[] maps);

        bool Delete(T item);

        int Update(T item, params object[] maps);
    }
}
